package com.tsd.jxc.stock.service;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.stock.entity.JxcStockOutbillExt;
import com.tsd.jxc.stock.entity.JxcStockOutbillItem;
import com.tsd.jxc.stock.entity.JxcStockOutbillItemExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcStockOutbillItem服务实现层接口
 *
 * @author Hillpool
 * @date 2022/07/29 15:06:33
 */
public interface JxcStockOutbillItemService {

    /**
     * 描述：根据id获取JxcStockOutbillItem
     *
     * @param id
     */
    JxcStockOutbillItem getJxcStockOutbillItemById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcStockOutbillItem
     *
     * @param sid
     */
    JxcStockOutbillItemExt queryBySid(String sid) throws Exception;

    List<JxcStockOutbillItemExt> queryValidByBillList(List<String> bill_list) throws Exception;

    /**
     * 描述：根据sid列表删除JxcStockOutbillItem
     *
     * @param list
     */
    void deleteJxcStockOutbillItems(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcStockOutbillItem
     *
     * @param record
     * @param opUser
     */
    void saveJxcStockOutbillItem(JxcStockOutbillItemExt record, SysUser opUser) throws Exception;

    void saveJxcStockOutbillItem(JxcStockOutbillExt record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcStockOutbillItem
     *
     * @param params
     * @param page
     */
    List<JxcStockOutbillItemExt> findJxcStockOutbillItems(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcStockOutbillItem
     *
     * @param params
     */
    List<JxcStockOutbillItemExt> findJxcStockOutbillItems(Map<String, Object> params) throws Exception;
}